package com.gientech.group9.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.util.Objects;

@Data
@AllArgsConstructor
@Builder
public class User {

    private String role;
    private Integer userId;
    /**
     * 登陆账号
     */
    String username;



    /**
     * 登陆密码
     */
    String password;

    /**
     * 用户的名字
     */
    String name;

/*

    */
/**
     * 贷款金额
     *//*

    String loanAmount;


    */




    /**
     * 还款方式
     *//*

    String repaymentType;


    */



    public User() {


    }


    public User(String username, String password, String name) {
        this.username = username;
        this.password = password;
        this.name = name;
    }

    /**
     * 状态  现场调查中  合规性审核中  信贷审核中
     *//*

    String status;
*/








    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        User user = (User) o;
        return username.equals(user.username) &&
                password.equals(user.password);
    }

    @Override
    public int hashCode() {
        return Objects.hash(username, password);
    }
}
